\documentclass[fontsize=10pt,twoside,openright]{scrbook}

\usepackage[paperwidth=18.91cm,paperheight=24.589cm,twoside,bindingoffset=11mm,outer=2.2cm,inner=1.2cm,top=2.6cm,bottom=2.5cm]{geometry}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{makeidx}
\usepackage{supertabular}
\usepackage{color}
\usepackage{fancyvrb}
\usepackage{parskip}
\usepackage{hyperref}
\usepackage{framed}
\usepackage{verbatim}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{afterpage}
\usepackage{float}
\usepackage{morefloats}
\usepackage{quotchap}
\usepackage{eurosym}
%\usepackage[utf8]{inputenc}

\makeatletter
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
\makeatother

\DeclareGraphicsExtensions{.pdf}

\renewcommand{\textfraction}{0.00}
\renewcommand{\floatpagefraction}{0.8}
\renewcommand{\dblfloatpagefraction}{0.8}

\hypersetup{
    colorlinks,%
    citecolor=blue,%
    filecolor=blue,%
    linkcolor=blue,%
    urlcolor=blue
}

\input{macros}

\makeindex

\begin{document}

\frontmatter

\input{cover}

\setcounter{tocdepth}{2}
\tableofcontents
\listoftables
\listoffigures

\pagestyle{fancy}
\fancyhead[RE]{\slshape \rightmark}
\fancyhead[LO]{\slshape \leftmark}
\fancyhead[RO,LE]{\empty}
\fancyfoot[C]{\thepage}

\input{cha-preface}

\mainmatter
\input{cha-library}

\input{cha-intro-tls}

\input{cha-auth}

\input{cha-tokens}

\input{cha-gtls-app}

\input{cha-gtls-examples}

\input{cha-crypto}

\input{cha-programs}

\input{cha-internals}

\appendix

\input{cha-upgrade}

\input{cha-support}

\input{cha-ciphersuites}

\input{cha-errors}

%\input{cha-functions}

\input{fdl}

\backmatter


\bibliographystyle{abbrv}
\bibliography{gnutls}
\addcontentsline{toc}{chapter}{Bibliography}

\printindex
\addcontentsline{toc}{chapter}{Index}

\cleardoublepage

\end{document}

